package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Module {
    private Integer moduleId;
    private Integer parentId;
    private String moduleLevel;
    private Integer systemNo;
    private String isLeaf;
    private String fullIndex;
    private String moduleIcon;
    private Integer moduleOrder;
    private String moduleName;
    private String moduleNotes;
    private String moduleUrl;
    private String createUser;
    private String updateUser;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;



    public Module(Integer moduleId, Integer parentId, String moduleLevel, Integer systemNo, String isLeaf, String fullIndex, String moduleIcon, Integer moduleOrder, String moduleName, String moduleNotes, String moduleUrl, String createUser, String updateUser, Date createTime, Date updateTime) {
        this.moduleId = moduleId;
        this.parentId = parentId;
        this.moduleLevel = moduleLevel;
        this.systemNo = systemNo;
        this.isLeaf = isLeaf;
        this.fullIndex = fullIndex;
        this.moduleIcon = moduleIcon;
        this.moduleOrder = moduleOrder;
        this.moduleName = moduleName;
        this.moduleNotes = moduleNotes;
        this.moduleUrl = moduleUrl;
        this.createUser = createUser;
        this.updateUser = updateUser;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Module() {
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public Integer getParentId() {
        return parentId;
    }

    @Override
    public String toString() {
        return "Module{" +
                "moduleId=" + moduleId +
                ", parentId=" + parentId +
                ", moduleLevel='" + moduleLevel + '\'' +
                ", systemNo=" + systemNo +
                ", isLeaf='" + isLeaf + '\'' +
                ", fullIndex='" + fullIndex + '\'' +
                ", moduleIcon='" + moduleIcon + '\'' +
                ", moduleOrder=" + moduleOrder +
                ", moduleName='" + moduleName + '\'' +
                ", moduleNotes='" + moduleNotes + '\'' +
                ", moduleUrl='" + moduleUrl + '\'' +
                ", createUser='" + createUser + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getModuleLevel() {
        return moduleLevel;
    }

    public void setModuleLevel(String moduleLevel) {
        this.moduleLevel = moduleLevel;
    }

    public Integer getSystemNo() {
        return systemNo;
    }

    public void setSystemNo(Integer systemNo) {
        this.systemNo = systemNo;
    }

    public String getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(String isLeaf) {
        this.isLeaf = isLeaf;
    }

    public String getFullIndex() {
        return fullIndex;
    }

    public void setFullIndex(String fullIndex) {
        this.fullIndex = fullIndex;
    }

    public String getModuleIcon() {
        return moduleIcon;
    }

    public void setModuleIcon(String moduleIcon) {
        this.moduleIcon = moduleIcon;
    }

    public Integer getModuleOrder() {
        return moduleOrder;
    }

    public void setModuleOrder(Integer moduleOrder) {
        this.moduleOrder = moduleOrder;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModuleNotes() {
        return moduleNotes;
    }

    public void setModuleNotes(String moduleNotes) {
        this.moduleNotes = moduleNotes;
    }

    public String getModuleUrl() {
        return moduleUrl;
    }

    public void setModuleUrl(String moduleUrl) {
        this.moduleUrl = moduleUrl;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
